import type { Result } from '@/api/http/request'

// http
export function isResultSuccess(r: Result) {
  if (r) {
    return r.code === 200
  }
  return false
}
